package cloud.keveri.response4j.configure;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import static cloud.keveri.base.def.Const.*;
import static cloud.keveri.response4j.def.Const.Response4j_Prefix;

/**
 * <p>
 * 作者：沈自在
 **/
@Data
@Component
@ConfigurationProperties(prefix = Response4j_Prefix)
public class Response4jProperties {
    /**
     * 响应风格
     */
    private String responseStyle;
    /**
     * 默认的成功码
     */
    private Integer defaultSuccessCode = DEFAULT_SUCCESS_CODE;

    /**
     * 默认的成功提示
     */
    private String defaultSuccessMessage = DEFAULT_SUCCESS_MESSAGE;

    /**
     * 默认的失败码
     */
    private Integer defaultErrorCode = DEFAULT_ERROR_CODE;

    /**
     * 默认的失败提示
     */
    private String defaultErrorMessage = DEFAULT_ERROR_MESSAGE;
}
